/*
 * @Author: zhong_m
 * @Date: 2022-10-10 09:14:24
 * @LastEditTime: 2022-10-10 14:11:57
 * @LastEditors: zhong_m
 * @Description: 代理设置,开发环境默认baseUrl为/api，如需代理至其它地址，请在默认代理前设置路径,修改后需重启项目
 * @FilePath: \central-system\src\config\app\proxy.js
 */

module.exports = {
  // '/api/xxx': {
  //   target: `http://****/`,
  //   changeOrigin: true,
  //   pathRewrite: {
  //     '/api': ''
  //   },
  '/api': {
    target: 'https://apigateway.hdec.com/fawkes-new/staging/api',
    changeOrigin: true,
    pathRewrite: {
      '/api': ''
    }
  },
  '/filePreview': {
    target: 'https://apigateway.hdec.com/fawkes-new/local/filePreview',
    changeOrigin: true,
    pathRewrite: {
      '/filePreview': ''
    }
  },
  '/sub_app_wp/': {
    target: 'https://apigateway.hdec.com/fawkes-new/staging/sp',
    changeOrigin: true,
    pathRewrite: {
      '/sub_app_wp': ''
    }
  }
}